﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Draggable</title>
    <!-- Script -->
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="script/ui.core.js" type="text/javascript"></script>
    <script src="script/ui.draggable.js" type="text/javascript"></script>
    
     <!-- Script memilih elemen untuk diberikan kemampuan drag -->
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("#draggable").draggable({ handle: 'p' });
        });
    </script>

    <link href="css/ui.all.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #draggable 
        { 
            width:113px;
            height:113px;
            border:solid 3px #000;
            color:Black;
            font-weight:bold;
            background-color:Red;
        }
        
        #draggable p
        {
            width:113px;
            height:30px;
            background-color:Gray;
            text-align:center;
        }
    </style>
</head>
<body>
    
    <div id="draggable">
        <p>Header</p>
    </div>

</body>
</html>
